package chapter05

import "fmt"

func Defer1Main() {
	f(3)
}

func f(x int) {
	fmt.Printf("f(%d)\n", x+0/x) // 当 x == 0 时发生宕机
	defer fmt.Printf("defer %d\n", x)
	f(x - 1)
}
